package org.springcloud.eurekaClient.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HomeController {
	@Value("${spring.application.name}")
	String serverName;
	@Value("${server.port}")
    String port;
	@RequestMapping("/eurekaClient/home")
	public String home(@RequestParam String name){
		return "第一个客户端,客户端名字是："+ serverName+",端口是="+port;
	}
}
